package text;

public class car {
	 String x;  
	  String y;

	public static void main(String[] args) {
		car motorcycle = new car();  
		 motorcycle.x = "摩托车";  
		  motorcycle.y = "是两轮的交通工具";  
		 motorcycle.drive();  

		 car hand_tractor = new car();  
		  hand_tractor.x = "手扶拖拉机";  
		  hand_tractor.y = "是农耕工具";  
		  hand_tractor.drive();  

		car compact_car = new car();  
		compact_car.x = "小型汽车";  
		 compact_car.y = "是四轮的交通工具";  
		 compact_car.drive();  
		  }  
		public void drive() {  
		  System.out.println(x+y);  
		}
		 

	}

